-- GENERATED SPELL FOR [Tainted Spawn of Hydross] --


function spell0_22036(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_22036', 619, 1)
end

function Sorts_22036(pUnit, Event)
local choix_sorts_22036 = math.random(0, 0)
if choix_sorts_22036 == 0 then
pUnit:RegisterEvent('spell0_22036', 1, 1)
end
end

function mob22036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22036', math.random(1500, 3000), 1)
end

function mob22036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22036, 1, 'mob22036_Action')
RegisterUnitEvent(22036, 2, 'mob22036_Leave')
RegisterUnitEvent(22036, 3, 'mob22036_Kill')
RegisterUnitEvent(22036, 4, 'mob22036_Die')
